package com.ctshk.rpc.finance.req.bill;

import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.finance.json.FileJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 销售订单退款-退款req
 */
@Data
@ApiModel(value = "BillRefundReq",description = "销售订单退款-退款req")
public class BillRefundReq implements Serializable {

    @NotNull(message = "认款ID不能为空")
    @ApiModelProperty(value = "认款ID",required = true)
    private Long billId;

    @NotNull(message = "退款时间不能为空")
    @ApiModelProperty(value = "退款时间",required = true)
    private LocalDateTime refundTime;

    @NotNull(message = "付款凭证不能为空")
    @ApiModelProperty(value = "付款凭证",required = true)
    private List<FileJson> payVoucherJson;

    @ApiModelProperty(value = "退款备注")
    private String refundRemark;

    @ApiModelProperty(value = "用户")
    private TokenUser user;

}
